package com.beself.until;/*
    author:李思远
    adte:2019/10/1221:08
    description:
*/

import java.util.Random;

public class RandomStringTLUtils {

    public static String randomNumeric(Integer number){
        String code = "";
        Random random = new Random();
        for (int i = 0; i < number; i++) {
            int r = random.nextInt(10); //每次随机出一个数字（0-9）
            code = code + r;  //把每次随机出的数字拼在一起
        }
        System.out.println(code);
        return code;
    }
}
